<?php
/*
 * @Date: 2021-05-10 00:09:29
 * @Author: yukun
 * @LastEditors: yukun
 * @LastEditTime: 2021-05-10 00:23:20
 * @FilePath: /design-patterns-study/适配器模式/AdapterTmall.php
 * @Description: 本文件主要功能为：
 */

class AdapterTmall extends Tmall
{
    public static function getOrderDetail() {
        $orderDetail = parent::getOrderDetail();

        return [
            'id'    => $orderDetail['TmallId'],
            'title' => $orderDetail['TmallTitle'],
        ];
    }
}
